package com.itheima.helloworld385.contorller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloWorldController {

    private static int count = 0;

    @GetMapping("")
    public String hello(){
       String s = "hello api invoke: " + (count++) + " times";
        System.out.println(s);
        return s;
    }
}
